<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	template="/pages/templates/TemplateClient.xhtml">


	<ui:define name="titre">Comme au resto</ui:define>

	<ui:define name="content">
		<h:head>
			<div>
				<br /> <span> Liste des Commandes : </span> <br /> <br />
			</div>
		</h:head>
		<h:body>
		<h:form>
			<div>
				
			</div>
			<p:dataTable border="1" value="#{commandeMB.listeCommandes}" var="r">
				<p:column>
					<f:facet name="header">
						<f:verbatim>id commande</f:verbatim>
					</f:facet>
					<h:outputText value="#{r.id}" />
				</p:column>

				<p:column>
					<f:facet name="header">
						<f:verbatim>Date commande</f:verbatim>
					</f:facet>
					<h:outputText value="#{r.dateCommandeCalendar.time}">
						<f:convertDateTime pattern="dd/MM/yyyy"/>
					</h:outputText>
				</p:column>
				<p:column>
					<f:facet name="header">
						<f:verbatim>Etat commande</f:verbatim>
					</f:facet>
					<h:outputText value="#{r.etatCommande}" />
				</p:column>
				<p:column>
					<f:facet name="header">
						<f:verbatim>Total commande</f:verbatim>
					</f:facet>
					<h:outputText value="#{r.totalCommande}" />
				</p:column>

			</p:dataTable>
			<br />


		</h:form>
		</h:body>
	</ui:define>
</ui:composition>
